package com.Demo;

import com.dao.StudentDao;
import com.model.Student;
import java.util.List;
import java.util.Scanner;

public class Demo06_selectStudentList {
    public static void main(String[] args) {
        System.out.println("请输入要查询的班级:");
        Scanner scanner = new Scanner(System.in);
        String className = scanner.next();

        StudentDao studentDao = new StudentDao();
        List<Student> list = studentDao.selectByClassName(className);
        System.out.println(list.toString());
    }
}
